static const uint16_t in_com1[256] = {
    0xb38e, 0xb34f, 0xb222, 0x360e, 0x319c, 0xb333, 0xb4d1, 0xb13d,
    0x3661, 0x32d6, 0x3554, 0x8ebc, 0x3608, 0x365e, 0xb1ab, 0x3adb,
    0x3451, 0xb57c, 0xb2a7, 0xaec7, 0x31fe, 0xb61a, 0x35aa, 0x378c,
    0xb44f, 0xb5ad, 0xb04b, 0xb253, 0xb298, 0xae97, 0x38c7, 0xbad4,
    0xb858, 0xb5e2, 0x3b87, 0xb7ba, 0x3858, 0xb87b, 0x3bd0, 0x2c91,
    0x3b4e, 0x30f2, 0xb92e, 0x2e09, 0xaa10, 0xb054, 0x33c9, 0x3644,
    0x3313, 0x318e, 0xb58a, 0x39dd, 0x362d, 0x2ce0, 0x3109, 0x34fe,
    0xb50e, 0xa97a, 0x2d18, 0xb320, 0x38d0, 0x3272, 0xaa62, 0xb37e,
    0xb53d, 0xb48f, 0x3481, 0x2b45, 0xb279, 0xb427, 0x380a, 0xb120,
    0xace3, 0x30a9, 0x3c00, 0x3154, 0xb35b, 0x99af, 0xb658, 0xb1b4,
    0xa935, 0x3295, 0x34ab, 0xb5ba, 0x374e, 0xb0d2, 0x38b5, 0xb1cb,
    0x269a, 0xb08f, 0x3000, 0xb0af, 0xb71b, 0x3595, 0x31ff, 0x2d68,
    0x35ae, 0xb6f5, 0xb401, 0x3326, 0x28f3, 0x376a, 0x3673, 0x2d28,
    0x381f, 0xb435, 0x30d9, 0xb2f9, 0x3bab, 0x29f6, 0xad8d, 0xb4e9,
    0x1968, 0xb4bd, 0x3289, 0xb185, 0xb17c, 0x26c1, 0xa41d, 0x263d,
    0xb4f7, 0xba4d, 0xb843, 0x36d4, 0xb212, 0x3065, 0xad85, 0xb370,
    0x2e69, 0xba35, 0x3478, 0xb078, 0x3577, 0xab81, 0xb9a7, 0x2f5d,
    0x37ba, 0x3043, 0x38bd, 0xaadd, 0x32f8, 0xb429, 0x38fb, 0x2b8d,
    0x3811, 0xb3f2, 0xb7b6, 0xb4eb, 0xadbc, 0x38c0, 0xa997, 0x380a,
    0x3257, 0x33dd, 0xac9a, 0x3045, 0x3129, 0xaf02, 0x2cfa, 0xb798,
    0xb534, 0xb957, 0x37af, 0x3034, 0xaa88, 0xb6b4, 0x334b, 0x324b,
    0xb329, 0x371a, 0xb224, 0x2efd, 0x34f2, 0xaf8a, 0x3634, 0xb817,
    0x39ea, 0xb14a, 0xb687, 0x359c, 0x3907, 0xb45f, 0x35da, 0xb299,
    0xbacc, 0x3068, 0xb535, 0x2a17, 0x9dda, 0xb46d, 0x3123, 0x3115,
    0xa8e0, 0x3305, 0x35fe, 0x2cd2, 0x3a10, 0xb34d, 0xb6e5, 0xa512,
    0xa831, 0x37d8, 0xa531, 0xb371, 0xb076, 0xa8c5, 0xb5a6, 0x9864,
    0xb89f, 0xb32c, 0xb401, 0x345d, 0x346c, 0xac98, 0x3049, 0x2c83,
    0x36a8, 0x2961, 0xb00f, 0xb5a9, 0xb4b3, 0x2b67, 0xb779, 0x3104,
    0x3747, 0xb8e3, 0x2891, 0xb910, 0xb597, 0xb5c5, 0x3541, 0x2c3d,
    0x3175, 0xb60f, 0x1484, 0x2826, 0x3048, 0xb184, 0x342a, 0x2f75,
    0x34d7, 0xb813, 0x3184, 0x353f, 0xb199, 0xa39f, 0x331b, 0xac92,
    0xb0bb, 0xb55f, 0x9e01, 0x39c0, 0xb9ed, 0x36e1, 0xb6a8, 0x31c4
    };

static const uint16_t in_com2[256] = {
    0x365e, 0x2c4e, 0x2d3d, 0xb498, 0xb6b0, 0xb236, 0xae42, 0xa0d2,
    0xb326, 0x34b9, 0x38ce, 0xac59, 0xb3b7, 0xb9a1, 0xb66d, 0xb587,
    0xb4a2, 0xb08f, 0x2417, 0xb878, 0x31f0, 0xb8d3, 0x365a, 0x2eee,
    0xb466, 0xb3e8, 0x38fb, 0x2948, 0xb434, 0x311a, 0xb2cd, 0xaf35,
    0xb3bc, 0xad39, 0xa1d7, 0x2610, 0x3775, 0x2bcf, 0x2d65, 0xb6c1,
    0x3421, 0xb4c9, 0xadd6, 0xbb91, 0x34b5, 0x2952, 0x3802, 0x3099,
    0x309b, 0xb4e7, 0x33f0, 0x24d0, 0xb0e7, 0xb033, 0xb0fe, 0x3759,
    0x38e7, 0x3456, 0x36c9, 0x2627, 0x3169, 0xb7c9, 0x36aa, 0x2d19,
    0xb4fe, 0x356e, 0x30e5, 0xb443, 0xb42c, 0xb841, 0x34b2, 0x2a8a,
    0xb248, 0x3414, 0x2820, 0xacd5, 0xb45e, 0x38cd, 0xaea5, 0x27bd,
    0x354a, 0x364a, 0xb391, 0x36fa, 0x34a0, 0x2f8e, 0x366a, 0x2f62,
    0x3036, 0xb12a, 0x2870, 0xb191, 0xb1a0, 0xa8a5, 0x3913, 0x2453,
    0xb589, 0xaf5f, 0x37be, 0x35bc, 0xb738, 0xa510, 0xa94c, 0xad87,
    0xb4c0, 0x38d8, 0x3453, 0xb4e8, 0xb8ef, 0xb5c5, 0x3559, 0x307f,
    0xb47e, 0x147b, 0x313b, 0xb4d6, 0xa9ea, 0xb472, 0x2d7a, 0x3338,
    0xaeea, 0xb689, 0x3539, 0x2c81, 0xb583, 0x3367, 0xb63b, 0x3169,
    0x29dd, 0x2ee9, 0xb6b0, 0x34e2, 0x246f, 0xb52b, 0xb54a, 0xbabf,
    0x300b, 0xad25, 0xb0c8, 0x2a03, 0x3806, 0x3331, 0x34e2, 0x396f,
    0xb091, 0xba7b, 0xb515, 0xb4da, 0xaa0e, 0x34bd, 0x2eda, 0x3071,
    0x3436, 0x35f2, 0xade4, 0xb529, 0x368c, 0x30ba, 0xb58c, 0x33b6,
    0x2e08, 0xb32f, 0x327c, 0xb1f6, 0xac12, 0xb958, 0x356b, 0x3314,
    0xb521, 0x389e, 0xb968, 0xb0a0, 0x3a24, 0x34c3, 0x31ca, 0x3528,
    0x3343, 0xb42b, 0x2b60, 0xb3d1, 0xa2f0, 0xb883, 0x21c8, 0xb572,
    0xb070, 0xafbd, 0xb3cb, 0x37f1, 0xb424, 0xb81d, 0xad80, 0x308f,
    0x3628, 0xa803, 0x2ec2, 0xa9ae, 0x3407, 0xb587, 0x387f, 0x2c0f,
    0x33ae, 0x328b, 0xb3db, 0xaf06, 0xac03, 0x3191, 0xaefc, 0x3575,
    0x39cc, 0xad4b, 0x2cd9, 0x342e, 0x3775, 0xb40d, 0xb7e6, 0xb4ce,
    0xb80b, 0x341c, 0xb260, 0xaaea, 0x3617, 0x3514, 0x3432, 0xb1a6,
    0xb6f3, 0xa04b, 0x3602, 0x2c03, 0x3930, 0x30dc, 0x31bb, 0x32e3,
    0xb340, 0xb75c, 0x3660, 0xb399, 0x3c00, 0x3422, 0xb0eb, 0x31b6,
    0x2c4f, 0x3119, 0x2a0d, 0xba0b, 0x2950, 0x3870, 0xb470, 0x3604,
    0x31a2, 0xb178, 0xac71, 0x37d1, 0xb2ad, 0x310c, 0xb61f, 0x3375
    };

static const uint16_t in_clip[279] = {
    0xbb33, 0xbb26, 0xbb19, 0xbb0b, 0xbafe, 0xbaf1, 0xbae4, 0xbad6,
    0xbac9, 0xbabc, 0xbaaf, 0xbaa1, 0xba94, 0xba87, 0xba7a, 0xba6c,
    0xba5f, 0xba52, 0xba45, 0xba37, 0xba2a, 0xba1d, 0xba0f, 0xba02,
    0xb9f5, 0xb9e8, 0xb9da, 0xb9cd, 0xb9c0, 0xb9b3, 0xb9a5, 0xb998,
    0xb98b, 0xb97e, 0xb970, 0xb963, 0xb956, 0xb949, 0xb93b, 0xb92e,
    0xb921, 0xb914, 0xb906, 0xb8f9, 0xb8ec, 0xb8de, 0xb8d1, 0xb8c4,
    0xb8b7, 0xb8a9, 0xb89c, 0xb88f, 0xb882, 0xb874, 0xb867, 0xb85a,
    0xb84d, 0xb83f, 0xb832, 0xb825, 0xb818, 0xb80a, 0xb7fa, 0xb7e0,
    0xb7c5, 0xb7ab, 0xb790, 0xb776, 0xb75b, 0xb740, 0xb726, 0xb70b,
    0xb6f1, 0xb6d6, 0xb6bc, 0xb6a1, 0xb687, 0xb66c, 0xb652, 0xb637,
    0xb61d, 0xb602, 0xb5e8, 0xb5cd, 0xb5b3, 0xb598, 0xb57e, 0xb563,
    0xb549, 0xb52e, 0xb514, 0xb4f9, 0xb4de, 0xb4c4, 0xb4a9, 0xb48f,
    0xb474, 0xb45a, 0xb43f, 0xb425, 0xb40a, 0xb3e0, 0xb3ab, 0xb376,
    0xb340, 0xb30b, 0xb2d6, 0xb2a1, 0xb26c, 0xb237, 0xb202, 0xb1cd,
    0xb198, 0xb163, 0xb12e, 0xb0f9, 0xb0c4, 0xb08f, 0xb05a, 0xb025,
    0xafe0, 0xaf76, 0xaf0b, 0xaea1, 0xae37, 0xadcd, 0xad63, 0xacf9,
    0xac8f, 0xac25, 0xab76, 0xaaa1, 0xa9cd, 0xa8f9, 0xa825, 0xa6a1,
    0xa4f9, 0xa2a1, 0x9ea1, 0x0, 0x1ea1, 0x22a1, 0x24f9, 0x26a1,
    0x2825, 0x28f9, 0x29cd, 0x2aa1, 0x2b76, 0x2c25, 0x2c8f, 0x2cf9,
    0x2d63, 0x2dcd, 0x2e37, 0x2ea1, 0x2f0b, 0x2f76, 0x2fe0, 0x3025,
    0x305a, 0x308f, 0x30c4, 0x30f9, 0x312e, 0x3163, 0x3198, 0x31cd,
    0x3202, 0x3237, 0x326c, 0x32a1, 0x32d6, 0x330b, 0x3340, 0x3376,
    0x33ab, 0x33e0, 0x340a, 0x3425, 0x343f, 0x345a, 0x3474, 0x348f,
    0x34a9, 0x34c4, 0x34de, 0x34f9, 0x3514, 0x352e, 0x3549, 0x3563,
    0x357e, 0x3598, 0x35b3, 0x35cd, 0x35e8, 0x3602, 0x361d, 0x3637,
    0x3652, 0x366c, 0x3687, 0x36a1, 0x36bc, 0x36d6, 0x36f1, 0x370b,
    0x3726, 0x3740, 0x375b, 0x3776, 0x3790, 0x37ab, 0x37c5, 0x37e0,
    0x37fa, 0x380a, 0x3818, 0x3825, 0x3832, 0x383f, 0x384d, 0x385a,
    0x3867, 0x3874, 0x3882, 0x388f, 0x389c, 0x38a9, 0x38b7, 0x38c4,
    0x38d1, 0x38de, 0x38ec, 0x38f9, 0x3906, 0x3914, 0x3921, 0x392e,
    0x393b, 0x3949, 0x3956, 0x3963, 0x3970, 0x397e, 0x398b, 0x3998,
    0x39a5, 0x39b3, 0x39c0, 0x39cd, 0x39da, 0x39e8, 0x39f5, 0x3a02,
    0x3a0f, 0x3a1d, 0x3a2a, 0x3a37, 0x3a45, 0x3a52, 0x3a5f, 0x3a6c,
    0x3a7a, 0x3a87, 0x3a94, 0x3aa1, 0x3aaf, 0x3abc, 0x3ac9, 0x3ad6,
    0x3ae4, 0x3af1, 0x3afe, 0x3b0b, 0x3b19, 0x3b26, 0x3b33
    };

static const uint16_t ref_add[256] = {
    0x312e, 0xb128, 0xaf06, 0x2dd6, 0xb3c4, 0xb6b5, 0xb662, 0xb18a,
    0x319b, 0x3812, 0x3b78, 0xac60, 0x305a, 0xb4e4, 0xb8a1, 0x3818,
    0xa50a, 0xb7c3, 0xb224, 0xb951, 0x35f7, 0xbbe0, 0x3a02, 0x38a4,
    0xb85b, 0xb8d0, 0x37d1, 0xb101, 0xb781, 0x2b39, 0x3628, 0xbbba,
    0xba47, 0xb731, 0x3b70, 0xb759, 0x3c09, 0xb7fc, 0x3c3e, 0xb59d,
    0x3caf, 0xb09f, 0xb9e9, 0xbad0, 0x33e6, 0xadff, 0x39f4, 0x3848,
    0x35d7, 0xb041, 0xae4a, 0x3a03, 0x3373, 0xab0c, 0x1577, 0x3a2b,
    0x34c1, 0x334d, 0x3808, 0xb25b, 0x3a2a, 0xb490, 0x35de, 0xb0f2,
    0xb91d, 0x2af9, 0x36f4, 0xb2b4, 0xb769, 0xba55, 0x3a63, 0xaefb,
    0xb45d, 0x3669, 0x3c21, 0x2dd3, 0xb806, 0x38c7, 0xb801, 0xb0bd,
    0x34a3, 0x38ca, 0x2b16, 0x2cff, 0x39f7, 0xa82b, 0x3bea, 0xac33,
    0x3109, 0xb4dd, 0x311c, 0xb520, 0xb8f5, 0x3500, 0x3a92, 0x2e7d,
    0x208d, 0xb866, 0x337b, 0x38a8, 0xb699, 0x3719, 0x35c9, 0x9df1,
    0x32fd, 0x357b, 0x36bf, 0xb832, 0x3577, 0xb506, 0x33eb, 0xb153,
    0xb473, 0xb4b9, 0x35e2, 0xb799, 0xb2f7, 0xb406, 0x2c73, 0x3400,
    0xb6b1, 0xbcc9, 0xb299, 0x37f5, 0xb846, 0x35e6, 0xb79c, 0xac0e,
    0x30ac, 0xb958, 0xb070, 0x314d, 0x35be, 0xb61b, 0xbc26, 0xb9d4,
    0x38e0, 0x2ac1, 0x3717, 0x9ecc, 0x39c4, 0xa885, 0x3b6c, 0x39e8,
    0x35d9, 0xbc3c, 0xba65, 0xb8e3, 0xb061, 0x3b1e, 0x2c0e, 0x3926,
    0x3761, 0x38f0, 0xb13f, 0xb20e, 0x3890, 0x28e2, 0xb44e, 0xb379,
    0xb364, 0xbb23, 0x3976, 0xab08, 0xaf57, 0xbc59, 0x3888, 0x36af,
    0xb85b, 0x3c15, 0xbaf1, 0xa885, 0x3c4e, 0x31c1, 0x388c, 0xb20c,
    0x3bbb, 0xb6cf, 0xb59b, 0x2ecd, 0x38ec, 0xbab2, 0x3609, 0xb85f,
    0xbbe8, 0x2448, 0xb88e, 0x385a, 0xb43b, 0xba54, 0x2cc7, 0x34d2,
    0x358c, 0x3204, 0x37af, 0x27ec, 0x3c0a, 0xb897, 0x3032, 0x2996,
    0x32a2, 0x398f, 0xb441, 0xb57a, 0xb277, 0x3060, 0xb765, 0x356c,
    0x30b1, 0xb4e9, 0xb195, 0x3846, 0x39f1, 0xb533, 0xb5c1, 0xb35a,
    0xadbb, 0x34c8, 0xb537, 0xb686, 0x2d8f, 0x3601, 0xb28f, 0xa510,
    0x253f, 0xb8f4, 0x3694, 0xb890, 0x34c8, 0xb2af, 0x380f, 0x3481,
    0xab30, 0xbab6, 0x3665, 0xb290, 0x3c89, 0x2d80, 0x2ed4, 0x34b8,
    0x35ea, 0xb599, 0x3308, 0xb6d6, 0xb045, 0x3852, 0xab14, 0x34df,
    0x2733, 0xb80e, 0xacd1, 0x3cd4, 0xbb98, 0x38b4, 0xba63, 0x369c
    };

static const uint16_t ref_sub[256] = {
    0xb912, 0xb4bb, 0xb460, 0x3953, 0x38bf, 0xa7e5, 0xb281, 0xb0f0,
    0x38fa, 0xad37, 0xb448, 0x2c52, 0x38f2, 0x3c68, 0x3330, 0x3ccf,
    0x3879, 0xb26a, 0xb32a, 0x373e, 0x16f5, 0x331b, 0xa97e, 0x35d1,
    0x1d9e, 0xaee2, 0xba0e, 0xb3a5, 0x2b42, 0xb433, 0x3a7b, 0xb9ed,
    0xb4d2, 0xb494, 0x3b9f, 0xb80e, 0x2cea, 0xb8f8, 0x3b24, 0x37e5,
    0x393d, 0x3742, 0xb874, 0x3c29, 0xb577, 0xb1a9, 0xb41f, 0x33f0,
    0x2cf0, 0x37ae, 0xb8c1, 0x39b6, 0x3850, 0x32a3, 0x3503, 0xb0b7,
    0xbb6e, 0xb505, 0xb583, 0xb3e5, 0x36eb, 0x3981, 0xb776, 0xb505,
    0xa3d0, 0xb8fe, 0x301d, 0x352b, 0x2b7e, 0x345b, 0x32c5, 0xb2c3,
    0x2fad, 0xaefe, 0x3bbe, 0x33be, 0x2983, 0xb8d3, 0xb4af, 0xb2ac,
    0xb5f0, 0xb1ff, 0x383a, 0xba5a, 0x315c, 0xb44c, 0x3200, 0xb4be,
    0xaec5, 0x24d1, 0x2dc9, 0x2711, 0xb44a, 0x3629, 0xb726, 0x2c53,
    0x399b, 0xb51d, 0xb9df, 0xb053, 0x37d6, 0x37bb, 0x371c, 0x3157,
    0x3a7f, 0xbaf3, 0xaf99, 0x2db0, 0x3e4d, 0x3684, 0xb6bc, 0xb729,
    0x3488, 0xb4c2, 0x293a, 0x3028, 0xb001, 0x34de, 0xae82, 0xb271,
    0xb278, 0xb612, 0xbadf, 0x35b4, 0x30f4, 0xae06, 0x34da, 0xb66d,
    0x2af6, 0xbb13, 0x3994, 0xb71f, 0x3531, 0x343b, 0xb603, 0x3bab,
    0x35b4, 0x32d5, 0x39ef, 0xae70, 0xb491, 0xb7c1, 0x3515, 0xb8f6,
    0x3935, 0x387e, 0xb144, 0x9c1c, 0xa969, 0x34c2, 0xb0d3, 0x35db,
    0xac2a, 0xb006, 0x252b, 0x374c, 0xb3ef, 0xb41d, 0x36cb, 0xb9ba,
    0xb6b6, 0xb716, 0x3471, 0x3515, 0x2274, 0x33f8, 0xaf16, 0xa648,
    0x2e30, 0xb043, 0x37be, 0x340f, 0xb757, 0xb6a5, 0x329d, 0xbaab,
    0x3819, 0x2e17, 0xb773, 0x38c2, 0x3923, 0x34a7, 0x35ac, 0x304b,
    0xb9b1, 0x3423, 0xad3f, 0xb72e, 0x340c, 0x339a, 0x33e3, 0x242f,
    0xb6c4, 0x3403, 0x344d, 0x2fa9, 0x380c, 0x2f82, 0xbbf2, 0xad54,
    0xb45d, 0x3493, 0x3335, 0xafdc, 0xace9, 0xb2c2, 0xb3cd, 0xb57e,
    0xbd36, 0xb087, 0xb537, 0x21d8, 0xb213, 0x31ce, 0x3905, 0x35ef,
    0x3b5f, 0xb2df, 0x2ca3, 0xb4cc, 0xb965, 0xb427, 0xb9d5, 0x3555,
    0x3b1d, 0xb8d2, 0xb570, 0xb990, 0xbbfb, 0xb81a, 0x30c8, 0xb0c5,
    0x365a, 0x2d36, 0xb65c, 0x3451, 0xbaee, 0xb6e4, 0x36a0, 0xabf0,
    0x3386, 0xb959, 0x3001, 0x3c55, 0xb2ed, 0xb88f, 0x37fd, 0xb728,
    0xb52e, 0xb146, 0x2c10, 0x335d, 0xb842, 0x345b, 0xa846, 0xaac1
    };

static const uint16_t ref_mult[256] = {
    0xae03, 0xa3dd, 0xa404, 0xaef4, 0xacb0, 0x2997, 0x278a, 0x1651,
    0xadb3, 0x2c09, 0x3266, 0x1d5, 0xadd1, 0xb47c, 0x2c8e, 0xb4bc,
    0xacff, 0x2a3f, 0x9ace, 0x2b92, 0x2873, 0x335c, 0x307f, 0x2a8a,
    0x2cbd, 0x2d9c, 0xad59, 0xa02d, 0x2aef, 0xa434, 0xb010, 0x2e27,
    0x3033, 0x27af, 0xa17f, 0xa1db, 0x340c, 0xa860, 0x2d45, 0xa7b5,
    0x338b, 0xa9ea, 0x2b90, 0xadb6, 0xa323, 0x9dc2, 0x2fcd, 0x2b34,
    0x2813, 0xaacf, 0xad7f, 0x230d, 0xab91, 0xa11e, 0xa648, 0x3096,
    0xb232, 0xa1f0, 0x2852, 0x9d7b, 0x2e82, 0xae46, 0xa551, 0xa4c6,
    0x2e89, 0xae2f, 0x2983, 0xa3be, 0x2ac1, 0x306b, 0x30be, 0xa030,
    0x23ad, 0x28c1, 0x2820, 0xa26f, 0x2c04, 0x96d3, 0x2945, 0x9d85,
    0xa2e2, 0x2d2d, 0xac6b, 0xb0ff, 0x3039, 0xa48d, 0x338c, 0xa558,
    0x1af3, 0x25e3, 0x1c70, 0x2684, 0x2cff, 0xa27b, 0x2f9a, 0x15d8,
    0xafdc, 0x2a69, 0xafbf, 0x2d20, 0xa477, 0xa0b1, 0xa445, 0x9f1f,
    0xb0e5, 0xb119, 0x293e, 0x2c47, 0xb8bb, 0xa44d, 0xa76b, 0xa985,
    0x9211, 0x8d4f, 0x2846, 0x2aad, 0x200e, 0x9f81, 0x95a2, 0x1da1,
    0x284a, 0x3526, 0xb190, 0x27b1, 0x2c2f, 0x2811, 0x284c, 0xa908,
    0x1cb3, 0xad5d, 0xaf78, 0xa975, 0x1e0f, 0x24d9, 0x3379, 0xae36,
    0x2bd0, 0xa17b, 0xadab, 0x9929, 0x2f03, 0xab7a, 0x3214, 0x2921,
    0xaca4, 0x3270, 0x30e6, 0x2df7, 0x1c57, 0x31a0, 0x9cc9, 0x2c7c,
    0x2aac, 0x2dd8, 0x1ec7, 0xa982, 0x2c39, 0xa423, 0xa6e7, 0xaf52,
    0xa7d9, 0x30cc, 0x2e3a, 0xa644, 0x1aa6, 0x347a, 0x2cf0, 0x2991,
    0x2c97, 0x3419, 0x3026, 0xa40a, 0x3397, 0xa87d, 0x2c7d, 0xb145,
    0x315e, 0x2982, 0xa604, 0xad7b, 0xa05c, 0x30ee, 0x1c3b, 0x2c7e,
    0x2f8a, 0xa443, 0x2d13, 0x260b, 0x160e, 0x308d, 0xa310, 0x25ca,
    0xa381, 0x9f0a, 0x2910, 0x9ad8, 0x321a, 0x2d0c, 0xb3c0, 0x9525,
    0xa006, 0x2e6b, 0x1d19, 0x2688, 0x2079, 0x9ea3, 0x28ee, 0x91fe,
    0xb6b3, 0x24bf, 0xa4da, 0x2c90, 0x301f, 0x24a7, 0xac3b, 0xa56b,
    0xb2ba, 0x2186, 0x2677, 0x24e4, 0xaf28, 0x24b3, 0xafd6, 0xa716,
    0xb252, 0x1d3f, 0x22db, 0xa914, 0xb340, 0xab03, 0x2b88, 0x234c,
    0xa8f2, 0x3193, 0xf32, 0x9fe1, 0x3048, 0xa9b3, 0xa91f, 0x2553,
    0x2536, 0xad31, 0x202c, 0xb3ec, 0x9f6f, 0xa03a, 0xabe1, 0xa6df,
    0xa6a9, 0x2b59, 0xeaa, 0x359e, 0x30f2, 0x2c57, 0x3117, 0x2960
    };

static const uint16_t ref_negate[256] = {
    0x338e, 0x334f, 0x3222, 0xb60e, 0xb19c, 0x3333, 0x34d1, 0x313d,
    0xb661, 0xb2d6, 0xb554, 0xebc, 0xb608, 0xb65e, 0x31ab, 0xbadb,
    0xb451, 0x357c, 0x32a7, 0x2ec7, 0xb1fe, 0x361a, 0xb5aa, 0xb78c,
    0x344f, 0x35ad, 0x304b, 0x3253, 0x3298, 0x2e97, 0xb8c7, 0x3ad4,
    0x3858, 0x35e2, 0xbb87, 0x37ba, 0xb858, 0x387b, 0xbbd0, 0xac91,
    0xbb4e, 0xb0f2, 0x392e, 0xae09, 0x2a10, 0x3054, 0xb3c9, 0xb644,
    0xb313, 0xb18e, 0x358a, 0xb9dd, 0xb62d, 0xace0, 0xb109, 0xb4fe,
    0x350e, 0x297a, 0xad18, 0x3320, 0xb8d0, 0xb272, 0x2a62, 0x337e,
    0x353d, 0x348f, 0xb481, 0xab45, 0x3279, 0x3427, 0xb80a, 0x3120,
    0x2ce3, 0xb0a9, 0xbc00, 0xb154, 0x335b, 0x19af, 0x3658, 0x31b4,
    0x2935, 0xb295, 0xb4ab, 0x35ba, 0xb74e, 0x30d2, 0xb8b5, 0x31cb,
    0xa69a, 0x308f, 0xb000, 0x30af, 0x371b, 0xb595, 0xb1ff, 0xad68,
    0xb5ae, 0x36f5, 0x3401, 0xb326, 0xa8f3, 0xb76a, 0xb673, 0xad28,
    0xb81f, 0x3435, 0xb0d9, 0x32f9, 0xbbab, 0xa9f6, 0x2d8d, 0x34e9,
    0x9968, 0x34bd, 0xb289, 0x3185, 0x317c, 0xa6c1, 0x241d, 0xa63d,
    0x34f7, 0x3a4d, 0x3843, 0xb6d4, 0x3212, 0xb065, 0x2d85, 0x3370,
    0xae69, 0x3a35, 0xb478, 0x3078, 0xb577, 0x2b81, 0x39a7, 0xaf5d,
    0xb7ba, 0xb043, 0xb8bd, 0x2add, 0xb2f8, 0x3429, 0xb8fb, 0xab8d,
    0xb811, 0x33f2, 0x37b6, 0x34eb, 0x2dbc, 0xb8c0, 0x2997, 0xb80a,
    0xb257, 0xb3dd, 0x2c9a, 0xb045, 0xb129, 0x2f02, 0xacfa, 0x3798,
    0x3534, 0x3957, 0xb7af, 0xb034, 0x2a88, 0x36b4, 0xb34b, 0xb24b,
    0x3329, 0xb71a, 0x3224, 0xaefd, 0xb4f2, 0x2f8a, 0xb634, 0x3817,
    0xb9ea, 0x314a, 0x3687, 0xb59c, 0xb907, 0x345f, 0xb5da, 0x3299,
    0x3acc, 0xb068, 0x3535, 0xaa17, 0x1dda, 0x346d, 0xb123, 0xb115,
    0x28e0, 0xb305, 0xb5fe, 0xacd2, 0xba10, 0x334d, 0x36e5, 0x2512,
    0x2831, 0xb7d8, 0x2531, 0x3371, 0x3076, 0x28c5, 0x35a6, 0x1864,
    0x389f, 0x332c, 0x3401, 0xb45d, 0xb46c, 0x2c98, 0xb049, 0xac83,
    0xb6a8, 0xa961, 0x300f, 0x35a9, 0x34b3, 0xab67, 0x3779, 0xb104,
    0xb747, 0x38e3, 0xa891, 0x3910, 0x3597, 0x35c5, 0xb541, 0xac3d,
    0xb175, 0x360f, 0x9484, 0xa826, 0xb048, 0x3184, 0xb42a, 0xaf75,
    0xb4d7, 0x3813, 0xb184, 0xb53f, 0x3199, 0x239f, 0xb31b, 0x2c92,
    0x30bb, 0x355f, 0x1e01, 0xb9c0, 0x39ed, 0xb6e1, 0x36a8, 0xb1c4
    };

static const uint16_t ref_offset[256] = {
    0x3439, 0x3458, 0x34ef, 0x3b07, 0x3967, 0x3467, 0x325e, 0x3561,
    0x3b30, 0x39b5, 0x3aaa, 0x37fe, 0x3b04, 0x3b2f, 0x352b, 0x3d6d,
    0x3a28, 0x3108, 0x34ac, 0x364e, 0x3980, 0x2f9a, 0x3ad5, 0x3bc6,
    0x3361, 0x30a7, 0x35da, 0x34d6, 0x34b4, 0x365a, 0x3c64, 0xb5a7,
    0xa980, 0x303b, 0x3dc4, 0x245b, 0x3c2c, 0xabaf, 0x3de8, 0x3892,
    0x3da7, 0x393d, 0xb0b9, 0x38c1, 0x373e, 0x35d6, 0x39f2, 0x3b22,
    0x39c5, 0x3963, 0x30eb, 0x3cee, 0x3b16, 0x389c, 0x3942, 0x3a7f,
    0x31e4, 0x3751, 0x38a3, 0x3470, 0x3c68, 0x399d, 0x3734, 0x3441,
    0x3187, 0x32e3, 0x3a41, 0x3874, 0x34c3, 0x33b2, 0x3c05, 0x3570,
    0x36c7, 0x392a, 0x3e00, 0x3955, 0x3452, 0x37f5, 0x2e9f, 0x3526,
    0x3759, 0x39a5, 0x3a56, 0x308b, 0x3ba7, 0x3597, 0x3c5a, 0x351b,
    0x3835, 0x35b8, 0x3900, 0x35a9, 0x2b2b, 0x3aca, 0x3980, 0x38ad,
    0x3ad7, 0x2c2d, 0x33ff, 0x39c9, 0x384f, 0x3bb5, 0x3b39, 0x38a5,
    0x3c10, 0x3396, 0x3936, 0x3484, 0x3dd5, 0x385f, 0x369d, 0x322e,
    0x3805, 0x3285, 0x39a2, 0x353d, 0x3542, 0x3836, 0x37be, 0x3832,
    0x3213, 0xb49b, 0xa82d, 0x3b6a, 0x34f7, 0x3919, 0x369f, 0x3448,
    0x38cd, 0xb46b, 0x3a3c, 0x35c4, 0x3abc, 0x3710, 0xb29b, 0x38ec,
    0x3bdd, 0x3911, 0x3c5f, 0x3724, 0x39be, 0x33ae, 0x3c7e, 0x3879,
    0x3c08, 0x3407, 0x249a, 0x322a, 0x3691, 0x3c60, 0x374d, 0x3c05,
    0x3996, 0x39f7, 0x36da, 0x3911, 0x394a, 0x3640, 0x389f, 0x2683,
    0x3198, 0xb15c, 0x3bd7, 0x390d, 0x372f, 0x2d30, 0x39d3, 0x3993,
    0x346b, 0x3b8d, 0x34ee, 0x38e0, 0x3a79, 0x361d, 0x3b1a, 0xa1b5,
    0x3cf5, 0x355b, 0x2de5, 0x3ace, 0x3c84, 0x3343, 0x3aed, 0x34b3,
    0xb599, 0x391a, 0x3195, 0x3861, 0x37e9, 0x3326, 0x3949, 0x3945,
    0x3764, 0x39c1, 0x3aff, 0x389a, 0x3d08, 0x3459, 0x2c6c, 0x37af,
    0x377a, 0x3bec, 0x37ad, 0x3448, 0x35c5, 0x3767, 0x30b5, 0x37f7,
    0xacfb, 0x346a, 0x33fe, 0x3a2f, 0x3a36, 0x36da, 0x3912, 0x3890,
    0x3b54, 0x3856, 0x35f9, 0x30ae, 0x329a, 0x3876, 0x2837, 0x3941,
    0x3ba3, 0xaf18, 0x3849, 0xb040, 0x30d2, 0x3075, 0x3aa1, 0x3888,
    0x395d, 0x2fc4, 0x3802, 0x3842, 0x3912, 0x353e, 0x3a15, 0x38ef,
    0x3a6b, 0xa0b3, 0x3961, 0x3a9f, 0x3533, 0x37c3, 0x39c7, 0x36db,
    0x35a2, 0x3142, 0x37e8, 0x3ce0, 0xb3b5, 0x3b71, 0x2d62, 0x3971
    };

static const uint16_t ref_scale[256] = {
    0xaf8e, 0xaf4f, 0xae22, 0x320e, 0x2d9c, 0xaf33, 0xb0d1, 0xad3d,
    0x3261, 0x2ed6, 0x3154, 0x8abc, 0x3208, 0x325e, 0xadab, 0x36db,
    0x3051, 0xb17c, 0xaea7, 0xaac7, 0x2dfe, 0xb21a, 0x31aa, 0x338c,
    0xb04f, 0xb1ad, 0xac4b, 0xae53, 0xae98, 0xaa97, 0x34c7, 0xb6d4,
    0xb458, 0xb1e2, 0x3787, 0xb3ba, 0x3458, 0xb47b, 0x37d0, 0x2891,
    0x374e, 0x2cf2, 0xb52e, 0x2a09, 0xa610, 0xac54, 0x2fc9, 0x3244,
    0x2f13, 0x2d8e, 0xb18a, 0x35dd, 0x322d, 0x28e0, 0x2d09, 0x30fe,
    0xb10e, 0xa57a, 0x2918, 0xaf20, 0x34d0, 0x2e72, 0xa662, 0xaf7e,
    0xb13d, 0xb08f, 0x3081, 0x2745, 0xae79, 0xb027, 0x340a, 0xad20,
    0xa8e3, 0x2ca9, 0x3800, 0x2d54, 0xaf5b, 0x95af, 0xb258, 0xadb4,
    0xa535, 0x2e95, 0x30ab, 0xb1ba, 0x334e, 0xacd2, 0x34b5, 0xadcb,
    0x229a, 0xac8f, 0x2c00, 0xacaf, 0xb31b, 0x3195, 0x2dff, 0x2968,
    0x31ae, 0xb2f5, 0xb001, 0x2f26, 0x24f3, 0x336a, 0x3273, 0x2928,
    0x341f, 0xb035, 0x2cd9, 0xaef9, 0x37ab, 0x25f6, 0xa98d, 0xb0e9,
    0x1568, 0xb0bd, 0x2e89, 0xad85, 0xad7c, 0x22c1, 0xa01d, 0x223d,
    0xb0f7, 0xb64d, 0xb443, 0x32d4, 0xae12, 0x2c65, 0xa985, 0xaf70,
    0x2a69, 0xb635, 0x3078, 0xac78, 0x3177, 0xa781, 0xb5a7, 0x2b5d,
    0x33ba, 0x2c43, 0x34bd, 0xa6dd, 0x2ef8, 0xb029, 0x34fb, 0x278d,
    0x3411, 0xaff2, 0xb3b6, 0xb0eb, 0xa9bc, 0x34c0, 0xa597, 0x340a,
    0x2e57, 0x2fdd, 0xa89a, 0x2c45, 0x2d29, 0xab02, 0x28fa, 0xb398,
    0xb134, 0xb557, 0x33af, 0x2c34, 0xa688, 0xb2b4, 0x2f4b, 0x2e4b,
    0xaf29, 0x331a, 0xae24, 0x2afd, 0x30f2, 0xab8a, 0x3234, 0xb417,
    0x35ea, 0xad4a, 0xb287, 0x319c, 0x3507, 0xb05f, 0x31da, 0xae99,
    0xb6cc, 0x2c68, 0xb135, 0x2617, 0x99da, 0xb06d, 0x2d23, 0x2d15,
    0xa4e0, 0x2f05, 0x31fe, 0x28d2, 0x3610, 0xaf4d, 0xb2e5, 0xa112,
    0xa431, 0x33d8, 0xa131, 0xaf71, 0xac76, 0xa4c5, 0xb1a6, 0x9464,
    0xb49f, 0xaf2c, 0xb001, 0x305d, 0x306c, 0xa898, 0x2c49, 0x2883,
    0x32a8, 0x2561, 0xac0f, 0xb1a9, 0xb0b3, 0x2767, 0xb379, 0x2d04,
    0x3347, 0xb4e3, 0x2491, 0xb510, 0xb197, 0xb1c5, 0x3141, 0x283d,
    0x2d75, 0xb20f, 0x1084, 0x2426, 0x2c48, 0xad84, 0x302a, 0x2b75,
    0x30d7, 0xb413, 0x2d84, 0x313f, 0xad99, 0x9f9f, 0x2f1b, 0xa892,
    0xacbb, 0xb15f, 0x9a01, 0x35c0, 0xb5ed, 0x32e1, 0xb2a8, 0x2dc4
    };

static const uint16_t ref_dot_prod_3[1] = {
    0xb37b
    };

static const uint16_t ref_dot_prod_4[1] = {
    0xb93c
    };

static const uint16_t ref_dot_prod_4n1[1] = {
    0xb31e
    };

static const uint16_t ref_dot_prod_long[1] = {
    0x41f6
    };

static const uint16_t ref_abs[256] = {
    0x338e, 0x334f, 0x3222, 0x360e, 0x319c, 0x3333, 0x34d1, 0x313d,
    0x3661, 0x32d6, 0x3554, 0xebc, 0x3608, 0x365e, 0x31ab, 0x3adb,
    0x3451, 0x357c, 0x32a7, 0x2ec7, 0x31fe, 0x361a, 0x35aa, 0x378c,
    0x344f, 0x35ad, 0x304b, 0x3253, 0x3298, 0x2e97, 0x38c7, 0x3ad4,
    0x3858, 0x35e2, 0x3b87, 0x37ba, 0x3858, 0x387b, 0x3bd0, 0x2c91,
    0x3b4e, 0x30f2, 0x392e, 0x2e09, 0x2a10, 0x3054, 0x33c9, 0x3644,
    0x3313, 0x318e, 0x358a, 0x39dd, 0x362d, 0x2ce0, 0x3109, 0x34fe,
    0x350e, 0x297a, 0x2d18, 0x3320, 0x38d0, 0x3272, 0x2a62, 0x337e,
    0x353d, 0x348f, 0x3481, 0x2b45, 0x3279, 0x3427, 0x380a, 0x3120,
    0x2ce3, 0x30a9, 0x3c00, 0x3154, 0x335b, 0x19af, 0x3658, 0x31b4,
    0x2935, 0x3295, 0x34ab, 0x35ba, 0x374e, 0x30d2, 0x38b5, 0x31cb,
    0x269a, 0x308f, 0x3000, 0x30af, 0x371b, 0x3595, 0x31ff, 0x2d68,
    0x35ae, 0x36f5, 0x3401, 0x3326, 0x28f3, 0x376a, 0x3673, 0x2d28,
    0x381f, 0x3435, 0x30d9, 0x32f9, 0x3bab, 0x29f6, 0x2d8d, 0x34e9,
    0x1968, 0x34bd, 0x3289, 0x3185, 0x317c, 0x26c1, 0x241d, 0x263d,
    0x34f7, 0x3a4d, 0x3843, 0x36d4, 0x3212, 0x3065, 0x2d85, 0x3370,
    0x2e69, 0x3a35, 0x3478, 0x3078, 0x3577, 0x2b81, 0x39a7, 0x2f5d,
    0x37ba, 0x3043, 0x38bd, 0x2add, 0x32f8, 0x3429, 0x38fb, 0x2b8d,
    0x3811, 0x33f2, 0x37b6, 0x34eb, 0x2dbc, 0x38c0, 0x2997, 0x380a,
    0x3257, 0x33dd, 0x2c9a, 0x3045, 0x3129, 0x2f02, 0x2cfa, 0x3798,
    0x3534, 0x3957, 0x37af, 0x3034, 0x2a88, 0x36b4, 0x334b, 0x324b,
    0x3329, 0x371a, 0x3224, 0x2efd, 0x34f2, 0x2f8a, 0x3634, 0x3817,
    0x39ea, 0x314a, 0x3687, 0x359c, 0x3907, 0x345f, 0x35da, 0x3299,
    0x3acc, 0x3068, 0x3535, 0x2a17, 0x1dda, 0x346d, 0x3123, 0x3115,
    0x28e0, 0x3305, 0x35fe, 0x2cd2, 0x3a10, 0x334d, 0x36e5, 0x2512,
    0x2831, 0x37d8, 0x2531, 0x3371, 0x3076, 0x28c5, 0x35a6, 0x1864,
    0x389f, 0x332c, 0x3401, 0x345d, 0x346c, 0x2c98, 0x3049, 0x2c83,
    0x36a8, 0x2961, 0x300f, 0x35a9, 0x34b3, 0x2b67, 0x3779, 0x3104,
    0x3747, 0x38e3, 0x2891, 0x3910, 0x3597, 0x35c5, 0x3541, 0x2c3d,
    0x3175, 0x360f, 0x1484, 0x2826, 0x3048, 0x3184, 0x342a, 0x2f75,
    0x34d7, 0x3813, 0x3184, 0x353f, 0x3199, 0x239f, 0x331b, 0x2c92,
    0x30bb, 0x355f, 0x1e01, 0x39c0, 0x39ed, 0x36e1, 0x36a8, 0x31c4
    };

static const uint16_t ref_clip1[263] = {
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb7fa, 0xb7e0,
    0xb7c5, 0xb7ab, 0xb790, 0xb776, 0xb75b, 0xb740, 0xb726, 0xb70b,
    0xb6f1, 0xb6d6, 0xb6bc, 0xb6a1, 0xb687, 0xb66c, 0xb652, 0xb637,
    0xb61d, 0xb602, 0xb5e8, 0xb5cd, 0xb5b3, 0xb598, 0xb57e, 0xb563,
    0xb549, 0xb52e, 0xb514, 0xb4f9, 0xb4de, 0xb4c4, 0xb4a9, 0xb48f,
    0xb474, 0xb45a, 0xb43f, 0xb425, 0xb40a, 0xb3e0, 0xb3ab, 0xb376,
    0xb340, 0xb30b, 0xb2d6, 0xb2a1, 0xb26c, 0xb237, 0xb202, 0xb1cd,
    0xb198, 0xb163, 0xb12e, 0xb0f9, 0xb0c4, 0xb08f, 0xb05a, 0xb025,
    0xafe0, 0xaf76, 0xaf0b, 0xaea1, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66,
    0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66, 0xae66
    };

static const uint16_t ref_clip2[272] = {
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800,
    0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb800, 0xb7fa, 0xb7e0,
    0xb7c5, 0xb7ab, 0xb790, 0xb776, 0xb75b, 0xb740, 0xb726, 0xb70b,
    0xb6f1, 0xb6d6, 0xb6bc, 0xb6a1, 0xb687, 0xb66c, 0xb652, 0xb637,
    0xb61d, 0xb602, 0xb5e8, 0xb5cd, 0xb5b3, 0xb598, 0xb57e, 0xb563,
    0xb549, 0xb52e, 0xb514, 0xb4f9, 0xb4de, 0xb4c4, 0xb4a9, 0xb48f,
    0xb474, 0xb45a, 0xb43f, 0xb425, 0xb40a, 0xb3e0, 0xb3ab, 0xb376,
    0xb340, 0xb30b, 0xb2d6, 0xb2a1, 0xb26c, 0xb237, 0xb202, 0xb1cd,
    0xb198, 0xb163, 0xb12e, 0xb0f9, 0xb0c4, 0xb08f, 0xb05a, 0xb025,
    0xafe0, 0xaf76, 0xaf0b, 0xaea1, 0xae37, 0xadcd, 0xad63, 0xacf9,
    0xac8f, 0xac25, 0xab76, 0xaaa1, 0xa9cd, 0xa8f9, 0xa825, 0xa6a1,
    0xa4f9, 0xa2a1, 0x9ea1, 0x0, 0x1ea1, 0x22a1, 0x24f9, 0x26a1,
    0x2825, 0x28f9, 0x29cd, 0x2aa1, 0x2b76, 0x2c25, 0x2c8f, 0x2cf9,
    0x2d63, 0x2dcd, 0x2e37, 0x2ea1, 0x2f0b, 0x2f76, 0x2fe0, 0x3025,
    0x305a, 0x308f, 0x30c4, 0x30f9, 0x312e, 0x3163, 0x3198, 0x31cd,
    0x3202, 0x3237, 0x326c, 0x32a1, 0x32d6, 0x330b, 0x3340, 0x3376,
    0x33ab, 0x33e0, 0x340a, 0x3425, 0x343f, 0x345a, 0x3474, 0x348f,
    0x34a9, 0x34c4, 0x34de, 0x34f9, 0x3514, 0x352e, 0x3549, 0x3563,
    0x357e, 0x3598, 0x35b3, 0x35cd, 0x35e8, 0x3602, 0x361d, 0x3637,
    0x3652, 0x366c, 0x3687, 0x36a1, 0x36bc, 0x36d6, 0x36f1, 0x370b,
    0x3726, 0x3740, 0x375b, 0x3776, 0x3790, 0x37ab, 0x37c5, 0x37e0,
    0x37fa, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800
    };

static const uint16_t ref_clip3[279] = {
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66, 0x2e66,
    0x2e66, 0x2e66, 0x2e66, 0x2ea1, 0x2f0b, 0x2f76, 0x2fe0, 0x3025,
    0x305a, 0x308f, 0x30c4, 0x30f9, 0x312e, 0x3163, 0x3198, 0x31cd,
    0x3202, 0x3237, 0x326c, 0x32a1, 0x32d6, 0x330b, 0x3340, 0x3376,
    0x33ab, 0x33e0, 0x340a, 0x3425, 0x343f, 0x345a, 0x3474, 0x348f,
    0x34a9, 0x34c4, 0x34de, 0x34f9, 0x3514, 0x352e, 0x3549, 0x3563,
    0x357e, 0x3598, 0x35b3, 0x35cd, 0x35e8, 0x3602, 0x361d, 0x3637,
    0x3652, 0x366c, 0x3687, 0x36a1, 0x36bc, 0x36d6, 0x36f1, 0x370b,
    0x3726, 0x3740, 0x375b, 0x3776, 0x3790, 0x37ab, 0x37c5, 0x37e0,
    0x37fa, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800,
    0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800, 0x3800
    };

